/**
 * 依赖配置
 * 返回,返回依赖列表
 * @param resolve
 * @param isTestable
 * @param data
 * @returns {*}
 */

export default class  LibLoad{
    constructor(){

        this.libModule={};
        this.libs=[];
    }
    load(moduleName){
        _load(moduleName)
        return this.libs;
    }

    _load(moduleName){
        // 读取文件成功
        let data= qguan.findData(moduleName,"","","lib")
        let lint=data.split(/[\r\n]/);
        for (let i=0;i<lint.length;i++){
            let word =lint[i].split(',');
            if(! this.libModule[word[0].trim()]){
                this.libs.push([word[0].trim(),word[1].trim(),word[2].trim(),word[3].trim()])
                this.libModule[word[0].trim()]=true;
                this._load(word[0].trim());
            }
        }
    }
}
